﻿<%@ Page Language="c#" MasterPageFile="~/MasterFiles/Office2007.Master" Codebehind="Register.aspx.cs" AutoEventWireup="true" Inherits="THANHTUNGO.Portal.Security.UI.Register" %>
<asp:Content ID="Content1" runat="server" ContentPlaceHolderID="MainContent">
    <div align="center">
        <br />
        <asp:Panel ID="Panel1" runat="server" Width="350px" CssClass="PanelHeader">
            <table id="Table1" cellspacing="0" cellpadding="6" width="100%" border="0">
                <tr>
                    <td>
                        <asp:Label ID="Label6" runat="server">Đăng ký người sử dụng</asp:Label></td>
                </tr>
            </table>
        </asp:Panel>
        <table border="0" cellpadding="6" cellspacing="0" class="Panel" width="350">
            <tr>
                <td nowrap="nowrap" width="1%" class="LeftColumn" align="right">
                    <asp:Label ID="Label1" runat="server">Họ và tên:</asp:Label></td>
                <td nowrap="nowrap" width="99%" class="RightColumn">
                    <asp:TextBox size="25" ID="Name" runat="server" CssClass="NormalTextBox" Width="200px" />
                    <asp:RequiredFieldValidator ControlToValidate="Name" ErrorMessage="[Họ và tên] không được để trống" runat="server" ID="RequiredFieldValidator1" Font-Bold="True" Font-Size="Medium" Display="Dynamic">*</asp:RequiredFieldValidator></td>
            </tr>
            <tr>
                <td nowrap="nowrap" width="1%" class="LeftColumn" align="right">
                    <asp:Label ID="Label2" runat="server">Địa chỉ Email:</asp:Label></td>
                <td nowrap="nowrap" width="99%" class="RightColumn">
                    <asp:TextBox size="25" ID="Email" runat="server" CssClass="NormalTextBox" Width="200px" />
                    <asp:RegularExpressionValidator ControlToValidate="Email" ValidationExpression="[\w\.-]+(\+[\w-]*)?@([\w-]+\.)+[\w-]+" Display="Dynamic" ErrorMessage="[Email] không hợp lệ" runat="server" ID="RegularExpressionValidator1" Font-Bold="True" Font-Size="Medium">*</asp:RegularExpressionValidator>
                    <asp:RequiredFieldValidator ControlToValidate="Email" ErrorMessage="[Email] không được để trống" runat="server" ID="RequiredFieldValidator2" Font-Bold="True" Font-Size="Medium" Display="Dynamic">*</asp:RequiredFieldValidator></td>
            </tr>
            <tr>
                <td nowrap="nowrap" width="1%" class="LeftColumn" align="right">
                    <asp:Label ID="Label3" runat="server">Mật khẩu:</asp:Label></td>
                <td nowrap="nowrap" width="99%" class="RightColumn">
                    <asp:TextBox size="25" ID="Password" TextMode="Password" runat="server" CssClass="NormalTextBox" Width="200px" MaxLength="20" />
                    <asp:RequiredFieldValidator ControlToValidate="Password" ErrorMessage="[Mật khẩu] không được để trống" runat="server" ID="RequiredFieldValidator3" Font-Bold="True" Font-Size="Medium" Display="Dynamic">*</asp:RequiredFieldValidator></td>
            </tr>
            <tr>
                <td nowrap="nowrap" width="1%" class="LeftColumn" align="right">
                    <asp:Label ID="Label4" runat="server">Nhập lại mật khẩu:</asp:Label></td>
                <td nowrap="nowrap" width="99%" class="RightColumn">
                    <asp:TextBox size="25" ID="ConfirmPassword" TextMode="Password" runat="server" CssClass="NormalTextBox" Width="200px" MaxLength="20" />
                    <asp:CompareValidator ControlToValidate="ConfirmPassword" ControlToCompare="Password" ErrorMessage="[Nhập lại mật khẩu không trùng khớp]" runat="server" ID="CompareValidator1" Font-Bold="True" Font-Size="Medium" Display="Dynamic">*</asp:CompareValidator></td>
            </tr>
            <tr>
                <td class="LeftColumn" nowrap="nowrap" width="1%" align="right">
                </td>
                <td class="RightColumn" nowrap="nowrap" width="99%">
                    <asp:Button ID="btnRegister" runat="server" OnClick="btnRegister_Click" Text="Đồng ý" CssClass="CommandButton" /></td>
            </tr>
        </table>
        <asp:Panel ID="Panel2" runat="server" Width="350px" CssClass="PanelFooter">
            <table id="Table2" cellspacing="0" cellpadding="6" width="100%" border="0">
                <tr>
                    <td align="center">
                        <asp:Label ID="Message" CssClass="NormalRed" runat="server" /></td>
                </tr>
            </table>
        </asp:Panel>
        &nbsp;<br />
        &nbsp;
        <asp:ValidationSummary ID="ValidationSummary1" runat="server" ShowMessageBox="True" ShowSummary="False" />
    </div>
</asp:Content>
